from selenium.webdriver import ActionChains

import time
from selenium import webdriver
from selenium.webdriver.chrome.options import Options

chrome_options = Options()
chrome_options.binary_location = r"D:\work\soft\Chrome\Application\chrome.exe"
driver = webdriver.Chrome(options=chrome_options)
driver.get("https://www.7k7k.com/")
driver.maximize_window()
mouse=ActionChains(driver)
time.sleep(2)

# x=driver.find_element_by_xpath('//*[@id="header"]/div[1]/div/div[2]/div[3]/span')
# mouse.move_to_element(x).pause(3).perform()
#
# y=driver.find_element_by_xpath('//*[@id="header"]/div[1]/div/div[2]/div[1]/div[1]/span')
# mouse.move_to_element(y)
# mouse.context_click(on_element=None)
# mouse.perform()
#
# z=driver.find_element_by_xpath('//*[@id="header"]/div[1]/div/div[2]/div[1]/div[1]/span')
# mouse.move_to_element(y)
# mouse.click()
# mouse.perform()

d=driver.find_element_by_xpath('//*[@id="header"]/div[1]/div/div[2]/div[1]/div[1]/span')
mouse.move_to_element(d)
mouse.double_click()
mouse.perform()

t=driver.find_element_by_xpath('//*[@id="union"]/div[1]/div[2]/div[1]/div[5]/div[1]/a[1]')
mouse.move_to_element(t)
mouse.click()
mouse.perform()